﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace MrPP.SerriedCabinet
{
    public class MenuRoot : MonoBehaviour
    {
        [SerializeField]
        private Menu phototype_ = null;
        private Menu menu_ = null;
        [SerializeField]
        public string _title;
        public Menu menu{

            get{
                return menu_;
            }
        }
        // Start is called before the first frame update
        void Awake()
        {
            menu_ = GameObject.Instantiate(phototype_, this.transform, false);
            menu_.gameObject.SetActive(true);
            menu_.title = _title;
        }

     
    }
}